#位置参数传递
def division(num_one, num_two):
    print(num_one)
    print(num_two)
    print(num_one / num_two)
division(6, 2)

#关键字参数传递
def info(name, age, address):
    print(f'姓名:{name}')
    print(f'年龄:{age}')
    print(f'地址:{address}')
info(name='小婷', age=23, address="山东")


#默认参数传递
def connect(ip, port=3306):
    print(f"连接地址为: {ip}")
    print(f"连接端口号为： {port}")
    print("连接成功")

connect('127.0.0.1')
connect(ip='127.0.0.1', port=8080)

#参数打包传递
def test(*args):
    print(args)
test(11, 22, 33, 44, 55)


#参数解包传递
def test(a, b, c, d, e):
    print(a, b, c, d, e)
    nums =(11, 22, 33, 44, 55)
test(*nums)
